<!DOCTYPE html>
<body>
<input type="checkbox" id="indeterminateCheckbox">
<script>
indeterminateCheckbox.indeterminate = true;
</script>
</body>